package com.arellomobile.android.push.request;

import android.content.Context;
import android.location.Location;
import com.arellomobile.android.push.data.PushZoneLocation;
import com.arellomobile.android.push.request.versions.VersionHelper;
import com.arellomobile.android.push.request.versions.Version__1_2;
import com.arellomobile.android.push.request.versions.Version__1_3;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;

public class RequestHelper
{
  private static final Map<String, VersionHelper> sVersionHelpers = new HashMap();

  static
  {
    sVersionHelpers.put("1.1", new Version__1_2());
    sVersionHelpers.put("1.2", new Version__1_2());
    sVersionHelpers.put("1.3", new Version__1_3());
  }

  public static Map<String, Object> getAppRemovedData(Context paramContext, String paramString1, String paramString2)
  {
    return ((VersionHelper)sVersionHelpers.get(paramString2)).getAppRemovedData(paramContext, paramString1);
  }

  public static Map<String, Object> getNearestZoneData(Context paramContext, Location paramLocation, String paramString)
  {
    return ((VersionHelper)sVersionHelpers.get(paramString)).getNearestZoneData(paramContext, paramLocation);
  }

  public static PushZoneLocation getPushZoneLocationFromData(JSONObject paramJSONObject, String paramString)
    throws Exception
  {
    return ((VersionHelper)sVersionHelpers.get(paramString)).getPushZoneLocationFromData(paramJSONObject);
  }

  public static Map<String, Object> getRegistrationUnregistrationData(Context paramContext, String paramString1, String paramString2)
  {
    return getVersionHelper(paramString2).getRegistrationUnregistrationData(paramContext, paramString1);
  }

  public static Map<String, Object> getSendAppOpenData(Context paramContext, String paramString)
  {
    return getVersionHelper(paramString).getSendAppOpenData(paramContext);
  }

  public static Map<String, Object> getSendGoalAchievedData(Context paramContext, String paramString1, Integer paramInteger, String paramString2)
  {
    return getVersionHelper(paramString2).getSendGoalAchievedData(paramContext, paramString1, paramInteger);
  }

  public static Map<String, Object> getSendPushStatData(Context paramContext, String paramString1, String paramString2)
  {
    return getVersionHelper(paramString2).getSendPushStatData(paramContext, paramString1);
  }

  public static Map<String, Object> getSendTagsData(Context paramContext, String paramString)
  {
    return ((VersionHelper)sVersionHelpers.get(paramString)).getSendTagsData(paramContext);
  }

  private static VersionHelper getVersionHelper(String paramString)
  {
    VersionHelper localVersionHelper = (VersionHelper)sVersionHelpers.get(paramString);
    if (localVersionHelper == null)
      throw new RuntimeException("No Version Request Helper sent to version ‚Ññ" + paramString);
    return localVersionHelper;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.arellomobile.android.push.request.RequestHelper
 * JD-Core Version:    0.6.2
 */